package designPattern.Observer_delegate;

public class TradeCenter {
	public static void main(String[] args) {
		FundInvestor fundInvestor = new FundInvestor("小张");
		FundManager fundManager = new FundManager("天弘");
		fundInvestor.addListeners(fundManager,"buyStockA");
		fundInvestor.addListeners(fundManager,"buyStockB");
		fundInvestor.buyFund();
	}
}
